<ul>
<? foreach ($items as $key => $item): ?>
  
    <? if (tsAdminDash::hasPermission($item, $sf_user)): ?>
        <li>
          <? include_component('tsAdminDash', 'menu_item', array('item' => $item, 'key' => $key)) ?>
        </li>
    <?php endif; ?>

<?php endforeach; ?>
</ul>